package day01;

public class Demo09 {
	public static void main(String[] args) {
		
		char[]ch={'a','d','c','d'};
		String str=ch.toString();
		System.out.println(str);
		
		
		String s="A";
		long ft1=System.nanoTime();
		for(int i=0;i<10000;i++){
			s+="1";
		}
		long lt1=System.nanoTime();
		System.out.println(lt1-ft1);

		
		
		
		long ft2=System.nanoTime();
		StringBuilder s2=new StringBuilder("A");
		
		for(int i=0;i<10000;i++){
			s2.append("1");
		}
		long lt2=System.nanoTime();
		System.out.println(lt2-ft2);
		
		double d=(lt1-ft1)/(lt2-ft2);
		System.out.println(d);
		
		
		
		
		
	}
}
